package com.yangyang.rpc.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by chenshunyang on 2016/11/28.
 */
@Controller
public class IndexController {
    @RequestMapping(value = {"/","/rpc"})
    public String index(Model model, HttpServletRequest request) {
        model.addAttribute("iface","");
        return "rpc/index";
    }

    @RequestMapping("/help")
    public String help() {
        return "help";
    }
}
